﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
using Microsoft.Extensions.Options;
using MySql.Data.MySqlClient;
using OAuth.Dapper.Infrastructure.Data;

namespace OAuth.Dapper
{
   public  class MySQLDbConfig: DapperDBContext
    {
        public MySQLDbConfig(IOptions<DapperDBContextOptions> optionsAccessor) : base(optionsAccessor)
        {
        }

        protected override IDbConnection CreateConnection(string connectionString,string dbType)
        {
            IDbConnection conn = new MySqlConnection(connectionString);
            return conn;
        }
    }
}
